package com.blb.zycommunity.service.impl;

import com.blb.zycommunity.entity.SysUserPost;
import com.blb.zycommunity.mapper.SysUserPostMapper;
import com.blb.zycommunity.service.ISysUserPostService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户与岗位关联表 服务实现类
 * </p>
 *
 * @author chenheng
 * @since 2023-11-20
 */
@Service
public class SysUserPostServiceImpl extends ServiceImpl<SysUserPostMapper, SysUserPost> implements ISysUserPostService {

    @Autowired
    private SysUserPostMapper userPostMapper;

    @Override
    public boolean removePostByUserId(Long userId) {
        return userPostMapper.deletePostByUserId(userId);
    }

}
